﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ThisAddIn.cs" company="Geologische Bundesanstalt">
//   Thomas Heuberger, 2014-02
// </copyright>
// <summary>
//   Interaction logic for SettingsWindow.xaml
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace AttachmentHandler {
    using System.Diagnostics.CodeAnalysis;

    using Office = Microsoft.Office.Core;

    /// <summary>
    /// The this add in.
    /// </summary>
    public partial class ThisAddIn {
        /// <summary>
        /// Gets or sets the settings.
        /// </summary>
        public Settings Settings { get; set; }
        
        /// <summary>
        /// The this add in_ startup event handler.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void ThisAddIn_Startup(object sender, System.EventArgs e) {
            this.Settings = new Settings();
        }

        /// <summary>
        /// The this add in_ shutdown event handler.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void ThisAddIn_Shutdown(object sender, System.EventArgs e) {
        }
        
        #region VSTO generated code
        
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup() {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }

        [SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1202:ElementsMustBeOrderedByAccess", Justification = "Reviewed. Suppression is OK here.")]
        protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject() {
            return new Ribbon();
        }

        #endregion
    }
}
